<!-- 继承layout.html的模板 -->
{{ extend './_layout/layout.html' }}

{{ block 'header'}}
<link rel="stylesheet" href="/public/css/index.css">
{{ /block }}

<!-- 放入公共显示区域显示的内容 -->
{{ block 'content' }}
<div class="container bottom">
    <ul class="topicList">
        {{ each topics }}
        <li>
            <a href="/topics/show?topicId={{ $value.topicId }}">
                <img src="/public/img/avatar_default.jpeg" alt="用户头像">
                <span><small>@ {{ $value.author }}</small></span>
                <h3>{{ $value.title }}</h3>
                <p class="right"><small>{{ $value.updated_time }}</small></p>
            </a>

        </li>
        {{ /each }}
    </ul>
</div>
{{ /block }}